<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>27_2D-原点</title>

        <style>
            .outer {
                width: 400px;
                height: 400px;
                border: 1px solid black;
                margin-left: 200px;
                margin-top: 200px;
            }

            .inner {
                width: 200px;
                height: 200px;
                background-color: aqua;

                transform-origin: 50px 50px;
                transform-origin: top left;
                transform-origin: 0;

                transform: rotate(45deg);
            }
        </style>
    </head>
    <body style="height: 3000px;">
        <div class="outer">
            <div class="inner">

            </div>
        </div>
    </body>
</html>